package ltd.hxya.novel.crawl.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import ltd.hxya.novel.crawl.bean.CrawlVo;
import ltd.hxya.novel.crawl.entity.CrawlSource;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 爬虫源表 Mapper 接口
 * </p>
 *
 * @author hxya
 * @since 2022-09-18
 */
@Mapper
public interface CrawlSourceMapper extends BaseMapper<CrawlSource> {

    CrawlVo defaultCrawlSource();

    CrawlVo getById(@Param("crawlSourceId") Integer crawlSourceId);


    List<CrawlVo> crawlList();
}
